"GL ERROR :GL_INVALID_OPERATION : glDrawElements: range out of bounds for buffer" When trying to create more than 5 Spines

Hi, I am working on Cocos2d-Js 3.17. I am using Spines in my game and whenever i am trying to create more than 5 spines i am getting
[.WebGL-0x7f9033883000]GL ERROR :GL_INVALID_OPERATION : glDrawElements: range out of bounds for buffer error.
Those spines are not rendered on screen. When i create less than 5 spines everything works fine.
While i have successfully implemented the same thing working with Cocos2dx 3.17, all the spine are working smoothly.
I tried back tracing the issue for JS and tried version 3.15, 3.14, 3.12 but no success.

Could anyone please help me how to solve this problem as i am working on the latest version of cocos2d-js.

Thanks in advance.