I drove a 50% race in Brazil in MyTeam mode. On the last lap, I had a flat tire and tried to make it back to the pits.
The race winner crossed the finish line, and my slow driving caused an accident involving the AI, which resulted in a red flag.
Logically, the race was not restarted, but my driver was suddenly declared the race winner.
play on ps5 with newest patch
Edit: I was at position 9 in the last lap and not on position 1