Boss fights in the Sonic RPG series are won by exploiting turn order rather than by attacking repeatedly. Robot Nick hits hard, so the priority is surviving long enough to use your strongest abilities when the enemy is vulnerable, and keeping healing items for the turns after a big attack rather than the same turn.
Levels matter a great deal in these games. If you are arriving under-levelled, replaying earlier encounters is faster than grinding the boss. Checking a walkthrough for the recommended level range will save you several attempts.