I shut off version control in Unreal Engine (Tools > Connect to Revision Control > None) and left it on in Visual Studio (Git menu) and the error went away. You will still have version control within VS but will no longer see the SourceControl message within UE 5. Hope this helps.