Add the following variables to your environment to disable Gecko interruptible reflow:
GECKO_REFLOW_INTERRUPT_MODE
=counter GECKO_REFLOW_INTERRUPT_FREQUENCY=1000000 GECKO_REFLOW_INTERRUPT_CHECKS_TO_SKIP=1000000
Now start Firefox within this environment.