I’ve just had a thought. When exporting the .p12 file from Keychain Access on the mac, try selecting both the certificate and the key before exporting.
I have a feeling I may have done that. It would make sense if that works as the error is implying an issue with the key.