Hey there.
This looks quite similar to Sonarcloud for azure devops yaml v3 “cannot read properties” js.
The bug is on the Typescript compiler side and not yet triaged.
You can exclude the given file from analysis or disable S1874 in your Javascript/Typescript Quality Profile.
I’m not sure if this is linked to your analysis slowing down. You’d need to share your complete logs (preferably at DEBUG level, sonar.verbose=true)