This situation always happens when you reach about 5k population, try building more herb gardens, rock teleporters, and community houses if possible. stop factory production for a while and let your rescourses go in zig-zags until you reach 8k and try to balance everything. From that point you can focus on Urban planning and decorations. Also, try to keep the happiness at a very high level since it affects your production.