Quantum droplets in a dipolar Bose gas at a dimensional crossover