Just for kicks I tried sharing one from Photos on my Pixel 2 XL to YouTube, all went well.
In case you're curious, here's the video.
https://www.youtube.com/watch?v=TLvsiYi1lsM
How were you trying to do the upload? Were you trying from the YouTube app or sharing from the Photos app?
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See
this link for instructions on how to join Android Central.