After debugging with the Node.js crypto library, I found out that the actual error was Unsupported key usage for an RSA-OAEP key because I was passing the encrypt usage for a RSA private key which is not possible.
Unsupported key usage for an RSA-OAEP key
encrypt