There are 13 adjudicative criteria used to determine eligibility to access classified information. Those criteria cover everything from sexual behavior to financial considerations. If you have an issue related to one of the adjudicative guidelines, that doesn’t mean your chance of obtaining a security clearance is sunk.
Adjudicators consider the ‘whole person‘ when making their determination. Decisions are based on national security and a ‘common sense’ judgment of a person’s trustworthiness. So, even if you have skeletons in your closet, don’t consider your clearance chances sunk. The government cares more about the person you are today than who you were in the past.