The course could offer nonlinear grading where you get the maximum of [exam grade, 0.8 exam + 0.2 hw]
A lot of my university professors would use this kind of strategy where your final grading structure depends on various grades you got throughout the semester, so all students could get good grades whether they ace the exam or they are terrible at exams but excel at project based learning/labs.