Constraints on low-dimensional string compactifications