Why I'm getting theme related error when trying to add external JS to form?
You probably need to add the module/theme name before the attached library:

$form['#attached']['library'][] = 'mm/google.maps';


Otherwise drupal is looking for google as your module/theme name.