Ok so I tried this solution, wiping data installing 13.0.12 and then factory resetting the phone and it solved the issue for about a day. It passed almost a week and it returned to glitching the buttons like before.
The phone is barely usable, and it's getting really frustrating that none of the...