Keyboard keeps dying on me and random power button presses do nothing

So my 12th gen Intel Framework 13 DIY currently has a problem where I boot it up, it works, then at some point it stops working, freezes up, and no amount of pushing the power button/letting it sleep/closing and reopening will let it reboot unless I plug in a Yubikey, let it sit overnight so the battery drains, and then boot it back up again.

It feels a little bit like the magnetic sensor went haywire, but there’s a couple of dents in both the top and bottom plates so I’m wondering if I should replace both of those and see what happens.

This holds true whether or not I boot into Linux or Windows 10.