Ok, it appears when a db needs to become larger it fails due to a ‘cached file’ feature in the engine having different seek behaviour from the normal unix file handling.
A workaround seems to be removing the following code from IPlatformFileCachedWrapper.h
|| NewPosition > FileSize
Also to get debugging working I needed to apply a workaround from 5.3 unable to load plugin in debug