Shot in the dark, but I had a similar issue on a P3B and wasted a bunch of time because I assumed that a "brand name" SD card couldn't be defective. New SD card and everything worked great. It was amazing how I could install everything up to node-red and then things got weird.
Details are here: https://discourse.nodered.org/t/bash-script-and-raspbian-install-issues-again/20752