So, it isn't clear to me which of these clauses you are citing grants them the forced right to "Copilot" (which I'm using as a verb to avoid defining what stage of production we are talking about) that wasn't granted by the license of the code, but let's assume for a moment that you are correct: that just means that GitHub as a service makes no sense, right? Like, there are a ton of people using GitHub to develop using code I've published in the past... code which is under various of these example licenses, and which I've never myself (as the copyright holder) published to GitHub (and, in fact, would never as I despise GitHub). There are also a number of very popular projects--such as the Linux kernel--which people no only upload to GitHub but which have official mirrors of on GitHub where no party even owns the copyright in order to agree to these terms of service. Meaning, if you are correct, GitHub is often being used illegal and a ton of the source code they are training against wasn't legally provided to them in the first place.
Section D.3: "If you're posting anything you did not create yourself or do not own the rights to, you agree that you are responsible for any Content you post". A lawsuit against Github has no standing for the scenario you suggest, because Github is not at fault.