When using versions later than macOS 10.15 Catalina, there are occasions when you cannot install the app due to the security of the OS. In this case, please follow the instructions provided by Apple Inc.
・If you want to open an app that hasn’t been notarized or is from an unidentified developer
https://support.apple.com/en-us/HT202491#openanyway