If you get error like in subject when doing import of configuration, there is a good chance someone forgot to add some YAML file. In example
Configuration <em class="placeholder">core.entity_form_display.block_content.heading_block.default</em> depends on the <em class="placeholder">field.field.block_content.heading_block.field_text_color</em> configuration that will not exist after import.
there was missing field.field.block_content.heading_block.field_text_color.yml file that is dependency in the former file and one of devs forgot to add it to git, with this added, all is smooth again.