I realised this was occurring because in my code, $log was a huge amount of text, therefore it appears there is a limit to what you can store in an option.
I realised this was occurring because in my code, $log was a huge amount of text, therefore it appears there is a limit to what you can store in an option.