3rd stimulus

Unfortunately I had to cash out my 401k to cover the loss of our job.  I would like to know, if cashing out counts towards your AGI??

And if so,  we do not qualify for the 3rd stimulus?? That's unfortunate since I had to cash out in order to stay afloat and now we get punished by not getting the stimulus??