After updating PlatformIO I am now getting this ERROR

Could you try a workaround mentioned here? Just modify your build_flags:

build_flags = -ULWIP_OPEN_SRC -Wl,-Tesp8266.flash.4m.ld