I am betting you are experiencing anxiety, and that's all it is. Hopefully you were able to sleep and are feeling better this morning. It seems very unlikely that you would catch something just from touching the package of chicken, and as far as preparing the chicken and not washing under your nails--I don't think I've ever done that. Does it involve a nail brush? I don't even own one...lol! And I have handled plenty of raw chicken without getting sick
A tip that might help you in the future--I always wipe down my shopping cart with my own wipes. I will also carry those wipes in my bag and wipe my hands with them after I touch a package of raw meat, especially chicken. And I always bag my raw meat (in one of those flimsy plastic bag things) so it doesn't touch other stuff. It is definitely overkill--but it helps me not be so anxious.