I've had minor back problems over the years and from sitting in offices and at my sewing machine I've found it is important to be careful about your setup. If my machine is too high my shoulders hurt so I took the casters off my sewing desk to lower it. I bought a used old office task chair on wheels. By having it firmly against my lower back it provides support.
I still hurt if I sew for a particularly long time but these measures help.