Please try the below steps:
Run SMMI test to check whether this is related to hardware
How to Enter SMMI_TEST (test hardware)
Go to Calculator=>type " .12345+= "
you will be entered to SMMI_TEST
If there is something to do with the hardware, please also factory reset your phone once.
You can also try downgrading your phone from Android 12 to Android 11 from the below steps:https://rog.asus.com/in/phones/rog-phone-3-model/helpdesk_download/