@SANJR Order dependencies are listed in the Gcode dictionary, where relevant.
M208
Order dependency
If this command refers to any axes other than X, Y and Z then it must be later in config.g than the M584 command that creates those additional axes.
M671
Order dependency
M671 must come later in config.g than any command that changes the kinematics, e.g. M667 or M669.
So it shouldn't matter if M208 is before M671, or vice versa.
Your M671 does look a bit strange, though.
M671 X5:5:545:545 Y70:455:455:70 S5.0
This effectively says that the leadscrews are within the bed area, at (X,Y) 5,70 and 5,455 and 545,455 and 545,70. As it says in M671:
M671 is used to define the pivot points of the bed or gantry where it connects to the Z axis. These pivot points are often at each leadscrew, but may also be offset from the leadscrews, if the bed/gantry rests on a carriage extending out from the leadscrew, for example on a kinematic mount.
Generally with 4 Z axis motors, I'd expect the pivot points to be where the leadscrews are, rather than on Kinematic mounts under the bed.
Ian