> So later when I came back to home I formatted this USB,
In the future only buy used flash drives, they will be less expensive and probably already formated so when you reformat them it won’t matter. Formating factory made flash drives is not a good idea and as you found can screw things up.
With the one you’re writing about you can try returning it to the store for a replacement. Or send it to SanDisk for a free replacement but it will take longer to get.
Also, when using flash drives on Windows be sure to always use the Safely remove option to prevent the MBR from getting screwed up.