Is there any chance or any cause to broke the site due to spaces in di.xml file in Magento 2
If di.xml can be broken the site. But it depends on the code.
if you did the wrong code at di.xml and it related files then the site will be broken.
Most of the cases, the 3rd party modules have created the issue. So you should disabled that extension one by one Check which modules are created the issue.