Can't rebuild lighting

For some reason when I try to rebuild the lighting, it goes through the whole process, finishes without any error messages, yet it still says the lighting needs to be rebuilt. I use mostly static lighting for performance reasons. Any fix to this? This only started happening recently. I’m running 4.21.