I just managed to solve a similar problem.
In my case, the Elementor Header & Footer Builder plugin were incompatible with each other, so I changed the Elementor version to an older one, 3.19, maybe 3.19.4, but I don’t remember, and everything started working again.