Migration Error "GenerateMigrationResources.php [Line 872] => Undefined offset: XX"

It was out of bounds. The function getGatewayKeyById doesn’t allow for custom gateways. Mine had an ID of 62.