Turns out the tank was bad even though I pressure tested and could find no leaks. I replaced it with a stock NTC3 tank and the problem is completely gone! The only thing I can guess is maybe the pickup was partially blocked or the line between the pickup and fitting inside the tank had a problem that caused inconsistent fuel delivery.
But in any case the old tank was causing all the weird symptoms and random flame outs.