Dependent upon the extent of the under and over exposure, you may be able to balance it with careful use of exposure sliders, like those available in Lightroom (I have no idea if you have this facility with Darktable though). Carefully balancing exposure, recovery, fill light, brightness, and...