Pinholes as a film defect is usually caused by air bubbles in the melted emulsion just before application onto the support. This can happen if you omit or improperly carry out some steps prior to starting the coating operation.
The only way to determine if this is a true coating defect is to look for a true crater in the coating. Processing pinholes are smooth as all of the emulsion is coated, but air bubbles in processing cause a lack of development. When coating, actual emulsion is missing from the film and it can be seen just like a moon crater with an edge and a depressed center.
Sometimes, they look like small comets with a tail on one end, the trailing end, away from the direction of the moving web of wet film.
A very soft film can get something like if you use a carbonate developer and a stop bath. This is rare with todays films. It will not happen with Kodak, Ilford or Fuji film, and if it does happen it looks more like fish scales or blisters, not a true pinhole. If you look closely, you will see a crater, but you will also see the ragged surface of the burst blister stuck to the emulsion next to the crater. These are obvious before drying as you see the blisters almost like minute measles on the surface of the film. They are little wet pimples that deflate or burst during drying.
PE