Get the space height for maintain the capsulecomponent little size?

Good day guys!
I wanted to ask for something about the size what I’m giving to my CapsuleComponent of my ThirdPersonCharacter because I’m trying to create a capsule size transition like the crouching transition for don’t use the extra components of the crouching function what i dont need and breaks the new function what I’m trying to do (Slide).
I let my actual BP and the result:

my problem is when i release the f key (the key for the function) in little spaces the capsule get stuck and the mesh goes down.

how can i get the little size of the space for compare it with the original size of the capsule for maintain the little size of the capsule?

and for bonus track:

how can i maintain a mesh in his original place without AddWorldOffset function for change the position to normal?

Regards

Sorry if i had some english grammar problems :C

Have you tried a shape trace? Traces Overview | Unreal Engine Documentation
For example you can break the Hit output of a SphereTraceByChannel node to get the Distance value which will be 0 if there was an initial overlap (the sphere didn’t fit).