Weirdly I haven't had this issue much yet. I have had issued where the tab would kinda / break in sense that the tab would become useless and nothing can be done (eg. It will just show blank or some other tabs content)
Maybe try whitelisting Firefox from battery optimisation. It should help as some OEMs do aggressive background kill for apps.