I ran into the same issue during a D8 -> D10 upgrade when I updated address to ^2. I'm guessing it's a weird autoload issue because the directory structure of doctrine/collections changes between v1 and v2.
I tried running composer dump-autoload
an composer cc
but neither worked. I ended up needing to explicitly require an older version of doctrine/collections in my top-level composer.json (composer require 'doctrine/collections:^1.2'
) to get things working again.