Default [Q] Audio cuts out after about 3 min, requires twisting the device to return,

About a month ago I started having an issue where my audio cut out after a few minutes. I found that twisting the device would cause it to return, but pause the media. After the audio cuts out trying to raise the volume brings up the "loud audio is bad for hearing" message, so combined with the media pausing issue I concluded somehow the device thinks headphones are being connected. That's when the madness began.

First, I took off the back cover to see if that was part of the issue, audio continued to cut out.

Then I removed the usb port/headphone jack. The issue continues.

I removed the battery and main board, found no issues, put it back together and the issue continues.

I removed the pogo pins in case something crazy there was going on, but that did nothing.

I formated system/data/cache and reinstalled CM, and the issue continues.

The crazy thing is, bluetooth audio works fine, even though if you connect a headset, it takes precedence and cuts out the audio.

Any suggestions on how to fix this are welcome. Thank you