Is this the only one you have in your tank?
What do your water parameters look like?
Honestly, I don't know much about cucumbers, but I do know that they will spawn in a home aquarium and they don't like nitrate levels. When stressed, they can release toxins, but I don't know what it looks like when they do so. Hope these are at least some directions to be pointed in to try to find an answer to what exactly that is.