Hey Aryan,
Thank you for your input on this. There is a temporary solution to this problem, that would be to setup API Credentials on StackPath and reset W3TC to the default setting. Then perform the integration just as you would in case of MaxCDN.
Now here is where it get’s a little tricky, you will still need to insert the StackPath CDN URL manually, but it should work. That would hopefully get rid of the internal errors.
Also, here’s a guide on how you can insert the CDN URL: https://support.stackpath.com/hc/en-us/articles/222730587-WordPress-with-W3-Total-Cache-StackPath-CDN-Setup-Guide
I hope this tip helps you and others reading this, until W3TC adds StackPath to the configuration list 🙂
Regards,