How to configure the dbt test severity of all tests belong to a specific type of test in dbt_project.yml?

I believe you can only do it if they are singular tests or custom generic tests.

If this is your case you can use this documentation https://docs.getdbt.com/reference/resource-configs/severity