Besides other info, QR code contains the class name handling the event of receiving device administrator rights. This class name is set up in Settings - MDM Settings.
Make sure the value of "Component - Event recipient" is com.hmdm.launcher.AdminReceiver, and the "Main application" is Headwind MDM.
Correct the values if necessary, and re-generate the QR code.