Using a modified YouTube IPA violates YouTube’s Terms of Service (Section 5.2 – “You may not modify, translate, or create derivative works of the Service”). While you are unlikely to face legal action as an individual user, Google retains the right to:
Disclaimer: This post is for informational purposes. Sideloading apps is done at your own risk. To help you further, could you tell me: