Hello Friend, Good that you are seeking a help. Relationship failures will take time to accept and adjust. You must be going through the transition phase. If you are are convinced on the break up, then move on in life. Don't try to add negativity within you.
Take a counseling help if you need assistance to manage your thoughts and avoid overthinking about the past, so that you can solve your sleeping problem. Choose online consultation as it will be convenient and easy for your suitation.
Next Steps
Feel free to reach out to me online through Practo app for further evaluation and recommendation.