Hey man!
Don’t worry about that!
You can search for luthier videos on YouTube. You will find guys that have broken their guitar necks, headstocks and bodies, and in the end of the day it got fixed with no problems whatsoever.
Of course, damaging your instrument it is not that pleasing, but it happens.
After a visit to the doctor your guitar should be more than fine !