Many years ago on my E36, the light switch micro had also worn down, such that I replaced the door striker as well.
to get the alignment sorted was a "pain", but what I did was to leave the door latch ever so lightly loose, such that with a bit of force, it could still move.
then carefully closed the door, until it positively latched, and thereafter applied enough force on the door until the alignment was correct, this invariably also shifted the latch, which was only friction tight.
then carefully and gingerly open the door, and then properly tighten up the torx bolts,
thereafter check if it was still OK, if not, try again