Z axis deviating of the vertical

I am having an issue with my Z-axis.
The spindle assembly on my Z-axis rotates by about 2–3 degrees along the vertical rails whenever it encounters resistance.
The V-wheels on the X-axis are very stable, so the problem does not com from there.
The issue seems to come from the two vertical rails and the corresponding mating parts that slide along them; there appears to be some play (looseness) there. They don't have reubber wheels and excentric nuts. And anti Backslash nut are for the screw, not for the rails.
Is there a way to adjust this?

Thanks for your help!!!

@martincote911 Welcome to the group. What CNC machine do you have? Is this a recent observation? I’m not sure what you mean by “rotates”. If you can, it will help to upload a video. If not, no worries.