I've had a similar problem installing the latest version of WD desktop application on Big Sur M1. It kept endlessly looping between restart and approve security.
started regretting the WD upgrade.
Finally, the problem Resolved immediately after updating to Monterey.