M87. What was the black hole before? 10 seconds before the M87 black hole was a black hole, what was it? A star 10 times the size of our solar system?
We don't know (yet). It could have started with the explosion of a very large star, or a primordial black hole formed very soon after the Big Bang. See Wikipedia:

The origin of supermassive black holes remains an open field of research. Astrophysicists agree that once a black hole is in place in the center of a galaxy, it can grow by accretion of matter and by merging with other black holes. There are, however, several hypotheses for the formation mechanisms and initial masses of the progenitors, or &quot;seeds&quot;, of supermassive black holes.
One hypothesis is that the seeds are black holes of tens or perhaps hundreds of solar masses that are left behind by the explosions of massive stars and grow by accretion of matter. Another model hypothesizes that before the first stars, large gas clouds could collapse into a &quot;quasi-star&quot;, which would in turn collapse into a black hole of around 20 M☉. These stars may have also been formed by dark matter halos drawing in enormous amounts of gas by gravity, which would then produce supermassive stars with tens of thousands of solar masses. The &quot;quasi-star&quot; becomes unstable to radial perturbations because of electron-positron pair production in its core and could collapse directly into a black hole without a supernova explosion (which would eject most of its mass, preventing the black hole from growing as fast). Given sufficient mass nearby, the black hole could accrete to become an intermediate-mass black hole and possibly a SMBH if the accretion rate persists.
Another model involves a dense stellar cluster undergoing core-collapse as the negative heat capacity of the system drives the velocity dispersion in the core to relativistic speeds. Finally, primordial black holes could have been produced directly from external pressure in the first moments after the Big Bang. These primordial black holes would then have more time than any of the above models to accrete, allowing them sufficient time to reach supermassive sizes. Formation of black holes from the deaths of the first stars has been extensively studied and corroborated by observations. The other models for black hole formation listed above are theoretical.

(emphasis mine)