Issue : Y A M L Exception -------------------------------------- end of the stream or a document separator is expected

Y A M L Exception --------------------------------------

end of the stream or a document separator is expected

I tried all possible ways to resolve this . There is no error on deploying cft directly to account , but on using serverless i m getting error.