Is the B16 a swap?
Do you have any cel?
Honestly I think that you shook an electrical connection loose somewhere around the alternator if not one that goes to the alternator. You say you stalled out pretty bad as you know thats is a really rough on the engine(shaking & jerking) Is the tach Jumping around when it does these things?

Just my opinion though(something to think about)