Thanks for sharing your findings, @clerick, and sorry this was harder than it should be! I’m glad that upgrading to 6.6 on both sides helped in the end.
From the thread here I don’t see any stand-out cause of those local WP core files being deleted. But one thing you could try if you encounter this again is to delete Local’s cache of WP core, just in case that happened to be corrupt.