I've experienced this before the crashes, high ram usage or just part of the browser crashed having to fully close it for the browser to start working again
it's extremely strange, this is what was happening to me which it led to me disabling the XMP on one of my computers to make sure it wasn't my memory ram but nope. it's just firefox. extremely strange really