Compiling Error

I am trying to compile a firmware build using PlatformIo for my ender 3 using Marlin 2 Bugfix build with the Bigtree min E3 ver2 build and i am getting the following error could anyone help please

Error: Invalid ‘/Users/peterwalker/Marlin/Marlin-bugfix-2.0.x/platformio.ini’ (project configuration file): ‘File contains no section headers.
file: ‘/Users/peterwalker/Marlin/Marlin-bugfix-2.0.x/platformio.ini’, line: 1

Seems like your platformio.ini is corrupted or you’re not using the intended PIO core (4 or 5) version for it. Are you using the latest version of the Marlin-bugfix-2.0.x branch or is this an old download?

I am using the latest version of the Marlin-bugfix-2.0.x branch,
i have tried to recompile using the Bigtreetech version for the mini E3 Ver 2 and all went well in compiling the downloaded files but when i changed the config.h file to suit my EZABL i got the following error
Marlin/src/module/endstops.cpp:581:5: note: in expansion of macro ‘UPDATE_ENDSTOP_BIT’
*** [.pio/build/STM32F103RC_btt_512K/src/src/module/endstops.cpp.o] Error 1