How can I fix my video stuttering and moving in and out of frame when exported from FCPX?
In the export dialogue choose “Master File” of your project first and make sure the effects isn’t happening when watching the video file on your computer. 
When the master export is good upload it to YouTube or else video platforms. The file will be transcoded by the streaming platforms to fit all playing needs.