In terms of power, the M2 does indeed provide phenomenal performance. The battery life of any Apple Silicon laptop is also incredible. However, 8 GB RAM will simply not suffice. As most other responders have agreed, you must have at least 16 GB RAM unless your editing will be lightweight enough. No storage specifications have been listed, which is fine, as you can always buy external storage to connect and use, which makes internal storage less of a concern.
Paying for upgraded RAM certainly increases the price of Mac, but this upgrade is definitely necessary for demanding tasks like editing. However, if you could manage to use less then 12 GB RAM on your previous Windows PC, then you may be able to get away with using 8GB RAM, as MacBooks seem to generally manage RAM better.
I would like to note that if this refurbished MacBook Air is from the Apple Store itself, consider buying the MacBook Air from a retailer like Costco, Best Buy, Amazon, Micro Center, and other retailers of the same status.
Edit: NEVER CONSIDER ANY NON-APPLE DEVICE. EVER.