ok, get you now.
just turn the CO2 off 2-3hrs before lights off. there will still be plenty of CO2 left to aid photosynthesis during those few hours, but the levels will be also steadily deceasing for night.
the amount of O2 they use, will probably be equal too, or less than what they excreted during the day. so in affect it cancels out.
same with the CO2, the amount they produce wont ever become poisonous, they are constantly excreting CO2 aswell through the day.
if they ould produce that much, then there would be no need in having CO2 injection