Shapes throw parse errors

Hello,

I'm not sure if that's your validation or a 5.6.x bug and I should upgrade, but the following shapes throw errors:

https://pastebin.com/LeJpNish
https://pastebin.com/ZyB4shHb
https://pastebin.com/pdyP8pSR

They seem to be ok when viewed in QGis, but then I'm not really into geo shape data. Please let me know what's wrong about them.

Could anyone help? I can provide them in a different format if needed.

It would be really helpful if you showed how you are adding these shapes and the error messages that you are getting. I tried indexing the first shape in v6.3.1 and it seems to work fine. I didn't test it in v5.6 because support for WKT syntax was added only in v6.2 and you only provided WKT format.