Potentially related: I had OH2 on an RPi 3B+, and used VSC from another PC to edit configurations using the Remote SSH feature of VSC.
I found that when active I’d lose almost 400 MB of RAM on the Pi, and with only 1GB total it sometimes locked up completely when it ran out.