I don't know if it'll work but I do this when I have the same problem.
1. Clear the data of your Package Installer
2.Disable Play Protect
3.Clear the Data of Google Play Services (I don't know if this is safe tho)