Condom broke advice needed

So im 19m and I dont have hookups often from Grindr but when I do I always use a condom(never had sex raw). But tonight I was trying to top a guy but couldn’t fit in him and the condom broke leaving my head exposed for a few seconds. (Tried 3 times) I just ended up leaving. Tested neg on everything last week and the guy said he was sti free too