Using Windows 10 Pro, 64-bit OS, x64-based processor with LMMS 1.2.0-rc.4.
To reproduce:
Once the copied TCO enters the track, LMMS will crash, the runtime error window will appear,

then the "LMMS has stopped working" window will appear.

Could not recreate exactly on win32. rc4 xp3
However, for* AFP *the actual TCO is stripped and only the instrument is copied to 2. instance of LMMS
Copying a 3oc track with TCO went perfect
Copying a sample-track track with TCO went perfect
Reproduced. It seems like TrackContentWidget::canPasteSelection assumes the source track is from the same instance of LMMS:
https://github.com/LMMS/lmms/blob/daa3f535158f321e7a01ea531fc3085f2d26ab37/src/core/Track.cpp#L1382-L1394
I guess saving track type in createTCODataFiles and using it in canPasteSelection will be enough.
Note that the crash only happens if a track whose index equals to the index of source track doesn't exist in target LMMS instance.
Should be fixed in #4862.