The spots are burnt cornstarch. It created a browned layer on the bottom, which you tore up with the whisk and incorporated into the custard.
The reasons for this are:
too hot burner
too thin pot
Of the three, the first is the one most people underestimate. From the moment the starch gets inside, you should never stop stirring, making ...