Alright, after hours of researching and trial-n-error. Finally, I fixed the issue by re-enabling the SIP back on. Now the error is gone and the VS Code works perfectly.