I have raised a ticket regarding this issue on Twilio Help Support.
Also, if I remove the Twilio Pod or not use any code from library itself in my own codebase then also my project successfully compiles and passes validation.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: