Check the wire harness connections between the main control board and compressor when you unplug the dryer. If the wire harness is damaged, replace it. You'll probably need to have the compressor replaced if the wire harness connections are okay. The sealed refrigerant system requires a service technician to do this repair.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.