Just sitting here and my phone restarts. No problem. I log back in. Less than a minute later it restarts again. No problem, but I notice that when I press the on/off button the menu for emergency call, shut down, and restart comes up as if I was holding the on/off button, but I'm not.

It's done this 5 times in a row now. Not really sure what to do.

    GrapheneOS
    That wouldn't surprise me. I've dropped my phone a lot over the last 2 years. Something inside rattles when I shake it.

    In fact I banged it around on my desk, and it stopped doing it. So, you might be right.

      grapheine dropping your phone a lot will result in cracked solder joints over time. This can lead to the failure(s) you're describing. That "something" rattling inside, was your main camera as it was swinging between an array of magnets, used for OIS. If it doesn't rattle anymore - congrats, you just broke your camera too.