Update on this one:
Changing to other pins for external I2C makes it work for both Arduino and PlatformIO.
So with arduino you can lay external I2C over the internal I2C, but in PlatformIO that does not work. Anybody an idea why not?