@Moult
I managed to create the error, I am on BlenderBIM version 0.0.220516
This is the .blend file with the mesh created for the IfcWall

IfcExport worked, nothings strange

Closed Blender completely, and imported the IFC file

The mesh is now triangulated, I wanted to get rid of the triangulation so I used tris to quads

Going into object mode, to export it. Used no other function. Again the same error
location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
File "C:\Users\cclaus\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\blenderbim\bim\module\project\operator.py", line 733, in invoke
return self.execute(context)
File "C:\Users\cclaus\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\blenderbim\bim\module\project\operator.py", line 741, in execute
return IfcStore.execute_ifc_operator(self, context)
File "C:\Users\cclaus\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\blenderbim\bim\ifc.py", line 369, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
File "C:\Users\cclaus\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\blenderbim\bim\module\project\operator.py", line 768, in _execute
ifc_exporter.export()
File "C:\Users\cclaus\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\blenderbim\bim\export_ifc.py", line 49, in export
self.sync_all_objects()
File "C:\Users\cclaus\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\blenderbim\bim\export_ifc.py", line 111, in sync_all_objects
tool.Collector.sync(obj)
File "C:\Users\cclaus\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\blenderbim\tool\collector.py", line 45, in sync
object_collection = cls._get_collection(element, obj)
File "C:\Users\cclaus\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\blenderbim\tool\collector.py", line 184, in _get_collection
collection = bpy.data.collections.get(container_obj.name)
AttributeError: 'NoneType' object has no attribute 'name'
I wanted to attach the .blend file but the file format is not allowed.