A solution to the decompactification problem in chiral heterotic strings