This is very generic error. It can be due to bad quality or wrong parameters etc. For creating prisms, first check tet mesh quality. Improve tet mesh quality. Then try only one layer of prism. Make sure you specifiy prism parameters correctly. And then split that prism layer into number of layers.