Choose a gun with the length you need, from backstrap to trigger.
Or choose a gun that can be altered, like a 1911, for example.
Many different length triggers are available for them.
Walt Kelly, alias Pogo, sez:
“Don't take life so serious, son, it ain't nohow permanent.”