People breakup in relationships. They get laid off from work. Those close to us die. It happens to everyone sooner or later.
You will always keep that memory whether or not you want to, but moving on is part of life. Yes, it takes time, more for some than others. Some never move on as a loss is hurtful.
The best thing I can offer is that every experience can help you grow. Try to look for the positives. Try to remember those things or people that you lost for their positive influence on you. Sometimes if you can’t move on, at least move along until the pain is less.
The other situation I often see is that you don’t get the dream job you thought would change your life. There is always a next job if you keep seeking and no one thing is the panacea of life that will cause it to stop if it doesn’t go your way.