Seeing such error in a buggy Android 7.1 isn't very surprising...
...until you find out that this application is...
...disabled and should never be run by Android!
Now, let's do some math. Android is made / sponsored / supported by Google. YouTube is Google subsidiary. Two plus two gives four. Guys at Android dev team made their homework, titled "I don't give a shit what user wants", very well!