Only thing that helps is excercise.
I go to the gym at least 2x a week.
When gyms were closed during lockdowns I did not excercise or had much of movement anyway. Then I got my back hurting and other stuff.
Now I am back at the gym and all issues went away. Also I don’t lift super heavy but moderately like I don’t bench press 100kg so I finish at 70kg usually. So it more important to move than lift heavy. All gym bros will tell you to put on more weights but you don’t have to if it is not your goal. My goal is to be healthy.