I finally found the solution.
If you are in the same situation, try to solve the errors one by one (example: If your identity miss a permission, give it to the identity and wait until the error changes). Then try to delete the resource.
After solving a certain amount of errors, the resource will be able to be deleted. In my case, it allowed to delete the resource when the "Private service endpoint policies must be disabled" error appeared.