When exporting multiple images by selecting artboards or layers in the Layers panel, right-clicking and choosing 'Export As…', occasionally there are files that don't get exported from the selection in the 'Export As' panel. It's seemingly random, and doesn't happen every time.
We're sorry about the trouble with Photoshop. Did you start experiencing this issue after an update? Please try updating Photoshop to the latest version (23.2.1) & also macOS to 12.2.1 to check if the issue perists.