Composer.render() function making error

It does not make sense to call render() with the instance of WebGLRenderer and EffectComposer. Calling composer.render(); is sufficient for your use case.

It’s not necessary anymore to set the renderToScreen. The last pass in the pass chain is automatically rendered to screen.

When using FX, tone mapping should not be performed inline but with a separate post-processing pass at the end of your pass chain (but before AA).

Why are you using SMAA and not FXAA?