Open up about:config and go to layout.css.prefers-color-scheme.content-override and set it to one of the following:
0 => Force a Dark background
1 => Force a Light background
2 => Follow the System theme (default in Firefox 94)
3 => Follow the Browser toolbar theme (default in Firefox 95+)
I have astigmatism too and for me it looks just as bad when inverted, a blurry mess of black on white.
To me, what makes one a better choice vs the other has more to do with my environmental lighting.