Firefox becomes randomly unresponsive when inspect tool is open

Whenever I open the Inspect tool and after seemingly a random amount of time, Firefox will have a massive spike in CPU and GPU usage, as well as Firefox completely being unresponsive. I usually have to restart Firefox and is a pain. Any solutions out there to fix this issue?

Are you seeing this on different websites?
If you’re only seeing this on one, can you share it?
Is this happening when you’re doing a specific task in DevTools, or simply opening the inspector triggers it?

If you could record a profile using (starting before inspecting and stopping when Firefox starts to be slow) and sharing it, it would be helpful, although this might not be easy as Firefox gets unresponsive.