Compile error when including Arduino_PortentaBreakout.h

I am trying to program my Arduino Portenta H7 attached to a HAT CARRIER. To access the IO pins on the HAT CARRIER, you need to use the Arduino_PortentaBreakout library. This works fine in the Arduino IDE, however, compiling the code with PlatformIO in VScode gives me the following error:

C:\Users\micornelis\.platformio\packages\framework-arduino-mbed\libraries\PDM\src\STM32H747_SAI\audio.c:15:10: fatal error: pdm2pcm_glo.h: No such file or directory

My platformio.ini looks like this:

[env:portenta_h7_m7]
platform = ststm32
board = portenta_h7_m7
framework = arduino
lib_deps =  arduino-libraries/Arduino_PortentaBreakout@^1.0.1

Is there a way how to solve this?