Plenty of 40 year old men about who are very nice and very single. My accountant has been looking for years for a nice girl he's about 40 , can't find one, just manipulative gold diggers, so they are about there for you, just wait and a nice one'll come along.
You've 100% done the right thing, hard as it is. Stay strong,keep the faith, when you are out the other side of it, you'll see that it's been an important learning curve and it'll make your next relationship better and stronger.
Cheer up lovely, it'll only get better:)