Troubleshooting P5 error code

Have an LG WKHC152HWA stackable washer/dryer about a year and a half old. The dryer would not start and had a P5 error code a few months ago. Shut off breaker for awhile and it seemed to resolve the issue. Same problem again, turning off breaker will not fix it this time. There is a constant clicking noise coming from the right side of the dryer when the breaker is on, whether the dryer power button is on or off. Can't find repair videos for this specific model. Research suggested most common problems are likely control board, thermal fuse, or blown motor. I replaced the larger of the two control boards, the one on the right side - there is one mounted to the top of the dryer frame on both the left and right sides. Did not fix it. I have it completely torn down now, have tested the motor and it seems fine, cannot locate anything that appears to be a thermal fuse.

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

crwdns2934109:0crwdne2934109:0

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