Try these basic steps:
Force restart your iPX: Press and quickly release the Volume Up button. Press and quickly release the Volume Down button. Then, press and hold the Side button until you see the Apple logo, and when it appears release the side button.
Wait for the the device to restart then test it for a day.
If the issue still persists, I would try to install a fresh copy of iOS. To perform this operation, make a full backup of your iPX, then restore it to factory settings and set it up as new, following the instructions provided in this support guide:
Restore your iPhone, iPad, or iPod to factory settings - Apple Support
Then restore from your previously made backup.
Regards
Giulio