ender 3 v2 neo firmware

hello, I recently installed a filament runout sensor on my ender 3 v2 neo. I updated the firmware and it was working fine but then the printer reverted to its old firmware and every time I try to reinstall the updated firmware it does not work. it acts like its installing the firmware but it does not.