Phone makes loud noise for 1 second at start of calls.

I replaced the frame on a iPhone 11 Pro, and when I started it it worked fine except for when making calls. When I make calls, it make a LOUD distorted noise for one second and then it will work normally. It won't do it again unless I wait ~5 minutes. The earspeaker just does not work at all now.

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0