Missing audio in FCPX
I am an experienced user of FCPX on a 2017 iMac running OSX Mojave. I have recently come across a problem with audio that I haven't experienced before. Whilst editing 4K footage into a 1080p timeline, certain sections of audio from individual clips are going missing. They will not play either in the timeline or the browser. The waveforms show that particular section of audio as blank. I have checked the original and optimised files in the relevant library and there the audio is still present. Given that FCPX is accessing these files I can't understand why sections are missing? Some of these clips have been previously edited in projects that have since been deleted, so I'm wondering whether that may have anything to do with it? All the clips are stored and accessed on an external disk, a LaCie 2Big 16TB Thunderbolt drive. I do have FCPX crashes fairly regularly, presumably due to memory pressure. The iMac has 32gb of RAM.
Any ideas or advise welcome.
iMac 27", macOS 10.14