Had panic attack on airplane. This has never happened before. Does anyone recommend if I get on my connecting flight, or try to rent a car and drive 22 hours home?

Edit: thank you everyone for the advice and support, really helped me get through this. Was able to get on the flight and made it ok. Going to work on sorting this issue out before I book another flight in the future.