“Yahweh is near to all those who call on him, to all who call on him in truth.” — Psalm 145:18 (WEB)
There are two conditions in this verse, and the second one is easy to skip. God is near to those who call on him, and near to those who call on him in truth.
So nearness is not a question of distance at all. It is a question of honesty. The psalms are full of people who came to God without tidying themselves up first, complaining, questioning, arguing, and none of them were turned away for it.
Calling on him in truth might mean dropping the language you use when other people are listening. It might mean naming the thing you have been circling for weeks without saying aloud.
The invitation is not to pray better. It is to pray honestly, and to discover that he was close the whole time.