That's wild. Certainly not symptoms one would expect from a joint even though it was a high THC and you were a newbie. For pain use what is needed is a high CBD variety not thc. Tylenol #3 has only a minimal amount of codeine that does not need a prescription but it looks like you had a severe reaction to it nonetheless. I've done my share of experimenting over my younger years and still never had a reaction like that, but I never got into opioids except smoking some opium the odd time which I wasn't impressed with anyway.
I guess it must have scared the crap out of you, glad it worked out in the long run but you still have to deal with your leg and maybe start listening to your doc too. ;)
Cheers