It has happened again. I am using Nginx so it has no such thing as a htaccess file. The hosting company have identified it is happening from the theme because the rewrite_rules in wp_options are being broken by theme overwriting the value. The theme is overwriting it with a 404 re-write rules.