Hello @Riddhi N Patil,
I'm sorry to hear about your experience. I tried replicating this on my end but was unable to do so. Would you mind sharing more details, like the OS/Illustrator version, whether Illustrator behaves this way with all files, whether changing the output folder location makes a difference, and a screen recording of the problem (https://adobe.ly/3XBPnbi) so we can investigate this further?
Looking forward to hearing from you.
Thanks,
Anubhav