Would you mind filing a bug on bugs.swift.org, component "SourceKit-LSP" with some details about what version of sourcekit-lsp you're using and what exactly you're trying? For example, does this reproduce the error?
cd /tmp
mkdir pkg
swift package init
code .
# Open Package.swift in VSCode; are there errors?