Filed wrong tax return, as F1 student for federal and state! Also got all the refund including the stimulus check for Covid-19! How to fix it?

I have received Federal, State and Stimulus money for COVID-19.

I am on F1-OPT, have filled 1040 for Federal and Nonresident and Part-Year Resident Income Tax Return for NY as I lived there for 18 months!

How can I fix it?