After doing the below steps if the Digilocker is still not working then rename the file digilocker_pref.xml. in folder "root/data/data/com.digilocker.android/shared_prefs" :
First hide manager from settings
Then use magisk hide to hide root from digi locker.