This is not an error per se – it just happens when two nodes generate a block close to each other, and the network will recover fine from this situation.
But if you prefer to minimize these events, take a look at the miningturnover runtime parameter. If you set this to 0.0, well behaved miners will step out of the ring for as long as they are not needed.