“It happened again, but this time with bash history got corrupted.”
Empty git objects and mangled shell history, reported since August. The thread blames fast boot, then Windows shutdown, then a missing fsync. Microsoft sells WSL2 as the way to do Linux work on Windows. A filesystem that loses writes on reboot is not a dev environment.