Never lower your standards just because you are lonely. It is better to be by yourself than to be with the wrong person, this statement just means you should never settle for anything below your standards, you have lesser chances of hurting yourself when you're a loner than when you're with a toxic person. We need to understand some facts about relationships, and one major fact is; knowing your worth and understanding what you think you deserve doesn't make you an egotistical person. You simply know what makes you feel loved in different scenarios and if someone can't provide that, it's critical to realize that and make the decision to leave or decide to stay. You need to stick with people who won't let you down in the future.
Don't decrease your expectations; while you may be able to do so briefly, you won't be able to sustain it over the long term, and that will lead to future resentment. Instead of hanging out with the wrong crowd, it is preferable to be friends with yourself. Staying by yourself is preferable because you won't wind up with any additional mental stress. Hence if you ever want to make friends or socialize with others, just be real, people would love and respect you for it.