Your phone has built in troubleshooting tools.
One is accessed by launching your phone app and dialing *#0*#
The other is via your Samsung Members App, GetHelp and Diagnostics.
A Samsung Experience Store / Samsung Service Centre will also be able to help.
I wish you all the best with this situation.
Current Phone > Samsung Z Fold³ 5G. > Software : Android 12 ~ Samsung One Ui 4.