Completely uninstalling Command Line Tools for Xcode and installing it again resolved the errorrr.
Topic:
Code Signing
SubTopic:
Notarization
Tags: