Apparently correct D-flipflop implementation breaking my circuit. When using built-in D-flipflop, the circuit operates correctly
Your problem is that your implementation is a D latch not a D flipflop. A D flip flop is made up of two latches in series using an inverted clock on the last latch.