We know, $$ dU = d \overline{q} - d \overline{W}.$$ suppose we took the exterior derivative on both sides, then:
$$ 0= d( d \overline{q}) - d( d \overline{W})$$
This means, $$ d^2 \overline{q} = d^2 \overline{w} \tag{1}$$
However, do not be misled, the above expression is not equal to zero as followed from $d^2 (\text{anything})=0$, the quantity $ d \overline{q}$ is an inexact differential.
What does the above equation (1) mean? How can we interpret the action of the exterior derivative onto a quantity containing both inexact and exact differentials?