Specialty sites often carry "micro" sizes (like M1 to M3) that big-box stores typically lack.
If you need just one or two screws today, try these types of locations: Where to buy small machine screws? - Facebook where to buy small machine screws
: Highly recommended for hobbyists and electronics, offering specialized assortments and samples. Specialty sites often carry "micro" sizes (like M1