If at least one DC/DC is non isolated then i would change the negative “output” to power in (as it is not really a power output in that case but just a connection to its input side, “output” pin could even be stacked with input pin in that case and symbol drawn as a 3 pin device).
If it is however an isolated DC/DC then it becomes a bit different. Here one option is to simply ignore this one ERC error. See it as KiCad telling you “something is fishy, please take a look”.
Another option is to place any passive device or even a net-tie in series (might even be a good idea when connecting two isolated DC/DCs together as they might otherwise start to fight a bit potentially increasing power requirement or even creating EMC troubles).
Or change one of the power out pins to power in by creating a project specific symbol for the one you consider “not the true source of GND”.