I've encountered the above error whilst compiling through truffle. Code and compilation worked perfectly on remix but would refuse to verify on BSCScan, so as an alternative I decided to deploy with truffle and so verify through truffle as well but couldn't make it past compilation phase. Any tips / help are greatly appreciated!
It marks an apparent error on line 19
I'd be happy to privately provide full code if needed!