Ok, I managed to fixed it. It seems that you need full security set in order to be able to install it.
I followed this steps to go back to full security and after that I was able to install it. https://support.apple.com/guide/mac-help/change-security-settings-startup-disk-a-mac-mchl768f7291/mac
Topic:
Community
SubTopic:
Apple Developers
Tags: