Even though less frequent, ROM sockets on a Macintosh 512k can become corroded after nearly 40 years, which can sometimes cause vertical bars at startup. To address this, thoroughly clean the ROM socket contacts with DeoxIT contact cleaner spray and then carefully reseat the chips.
It's worth a try since it's a far more simple job than desoldering RAM chips on that motherboard.