It's most likely NOT about whether you were mediocre talent wise or about dedication and work ethic. Many people do not appreciate the role of blind and dumb luck behind success. I kid you not. It ain't all a meritocracy out there.
Take it easy with the sleep disruption. I can vouch for the vicious cycle of nasty shyte insomnia can create. If you have a gym subscription, get some HIIT exercises like a prowler sled push and start lifting weights. Keep away from alcohol and any coping drugs you may be taking. Look after yourself!
Time to reboot. :-)