What are you actually doing that causes the pain? Squats? Deads?
Will need to see your form to see what’s wrong. It could be that
your glutes aren’t firing, hence you either flex or hyperextend
your back to compensate for this, putting the load on your lower
back, hence causing the pain.