Nix Commands Segfault when Updating Nixpkgs Input in a Flake

I have been having this issue for a while. I have posted earlier but I have not found a definite fix. I don’t know if it is good etiquette or not to try necroing the post again but I’m pretty desperately looking to solve it.