hmmm has not happened to me, but I can see how intimacy or anything for that matter could trigger a panic attack. Obviously, something triggered the PA you described, perhaps try to find the source in a professional setting if inclined. There is no guarantee the PA will happen again, same goes for it happening again.
Test the waters, if it happens again, maybe you should try find out why.