I feel that the starting point would be Factory Images for Nexus and Pixel Devices | Google Play services | Google for Developers.
… this requires a bit of reading … and then come back and read it again … then sleep on it … then at the foot of the page … we find Acknowledge.
If you only want Stock ROM at this stage … that is fine.
… but that itself is quite a learning experience.