Ok, I had this problem too, Found a solution that is a quiet "barbarian" but works just fine ^^
Decision:
copy / paste all your cs files from the solution explorer into the solution explorer .. It will automatically create: "nameOfYourComponent - Copy.cs" Then you delete all the originals (those that are not called "- Copy.cs")
An exact copy no longer works in this error. I don't know why, but file recovery seems to fix it.
!!! Make sure you do not delete both files, please: - / At least if you have gitLab / gitHub repositery, then itβs good that you can delete everything by mistake, everything is stored on the Internet.
source share