The 2nd getImageMeta call is being made a $customSize is false but the response is a WP_Error_object as follows…
WP_Error Object ( [errors] => Array ( [image_no_editor] => Array (  => No editor could be selected. ) ) [error_data] => Array () )
Turns out the PHP-GD was missing from the PHP7 builds on the server.
Installed that and all working fine now. Thanks for your help and hope this thread helps someone else.