As you mentioned diagnostic test is work fine, and the motor should be not a problem. The 3rd party apps could be causing the issue. One way to check that is to put your phone into safe mode.
To enable Safe mode, turn off your phone. When it is switched off completely, press and hold the Power and Volume down buttons to turn on the device. When the Samsung logo appears on the screen, leave the Power button but keep holding the Volume down button until you see the home screen. The Safe mode text will appear at the bottom indicating that Safe mode is enabled.
Restart your phone will back to normal.