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