Hello eyewy,
Thank you for using Apple Support Communities! I understand that you're experiencing some issues with your iMac crashing when attempting to upload movies to iCloud Photos. You've come to the right place for a resolution.
To help further isolate potential causes of this behavior, I suggest trying the troubleshooting suggestions in the following support article:
If your Mac restarted because of a problem - Apple Support
Seeing if you can upload a movie to iCloud Photos with a different user account could also help determine if this may be caused by user related settings or files as well. If you don't have another user account, here's how you can create one for testing:
How to test an issue in another user account on your Mac - Apple Support
Keep us posted with what happens after trying those steps.
Cheers!