As of March 4th 2025 I get the same error. The error appears to have something to do with either the first or last line of the diagram.
@startditaa
/++++++
| |
+++ +++
| | | |
/-+++-\ +-+
| |
+++ +++
| | | |
+-+ +-+
@endditaa
produces

with no error. Adding a backslash to the end of the first line causes an error.
Modifying the last line to "+-+ +-" from "+-+ +-+" eliminates the error and produces

There are ways to produce the image but with extra content like
@startditaa < -S
.
/------\
| |
+++ +++
| | | |
/-+++-\ +-+
| |
+++ +++
| | | |
+-+ +-+
@endditaa
resulting in

Not a real solution but rather a hack.
Dick Maley