Im so sorry For the very late update but it took time for me to save up some money to buy a new nano here is how i fixed the nano i basically just uploaded a new bootloader to the arduino i used optiboot bootloader wich usually comes with the minicore package. here is how everything went:
i bought a nano when i tried uploading the bootloader to the nano it wouldnt work for some reason the nano couldnt read the broken nano signature even using the minicore package for the 328pb board. until now i just realised it maybe wasnt working because i was using the arduino ide and not using avr wich at the time i didnt what was avrdude. in theory it should not be a problem but idk im just dumb.
so i found a chinese clone usbasp laying around when i tried uploading the bootloader to the arduino it still wouldnt work(keep in mind im using avrdude and not arduino ide in all of these steps ) then i discovered that It identifies itself as a zhifengsoft HID device when I plug it into Linux. and it needs an app called progisp . so i followed this guide to turn it into a usbasp:
then i downloaded a firmware file from:
i downlaoded the atmega88 because thats the chip that my usbasp uses then i proceeded to change a line that the guide said to change and then flashed the firmware and now i got a usbasp then used the usbasp to then burn the optiboot bootloader specifically i used this
optiboot_flash_atmega328pb_UART0_115200_16000000L_B5.hex
(make sure to use the UART0 especially if ur using the arduino nano clone if not ask chatgpt) now it worked.
if your following this giude i highly recommend using chatgpt unless u know what ur doing.
also when uploading to the arduino make sure to use the minocore package and not the official arduino nano package