Here's the screenshot from the error with the debug console open.

any idea what's causing this?
Thanks fo the report.
This is a duplicate of https://github.com/bleachbit/bleachbit/issues/508
The cause is a bug related to printing the debugging message that a directory is not empty. The error is basically harmless.
It is fixed, and you can preview the latest release (with the fix) here https://ci.bleachbit.org/ . There have been many other changes too
You could test this fix in the newly-released BleachBit 2.3 beta