Okay, that’s fixed it for the most part. This is what the lightmap looks like now:
The error has disappeared, although the textures look a bit weird, for some reason.
That’s how the textures look in Max, so there’s some weird dark streaks: