We bought a dwarf apricot for on balcony and terrace over 15 years ago. We planted in fertile soil in the garden. After few years it was growing to normal size. We pruned it to keep it reasonably small.
All fruit trees will grow high with long branches if you don’t prune. And keep on pruning...