I host several WordPress sites using a Google Compute Engine instance as the apache webserver. Twice recently, a site has gone down, throwing fatal PHP errors that were resolved by resetting the webserver. In both cases, the debug log indicated that there were single characters transposed in the code, even though the code was actually fine. For example, the error thrown was "Call to undefined method GFCommon::load_gf_sext_domain()" when the code actually read "...load_gf_text_domain()" (a "t" had been replaced with an "s").
In another example, the error thrown was "Trait 'WebSharks\CometC`che\Pro\Traits\Shared\ReplaceUtils' not found" but the actual code read "Trait 'WebSharks\CometCache..." (an "a" had been replaced with a "`").
In both cases, simply resetting the server solved the problem, at least temporarily. What could be causing this? Should I just clone the instance and hope for the best? Thanks.