I used this code in Nextjs and it showing 2 instances of animation.
const container = useRef(null);
useEffect(() =>{
lottie.loadAnimation({
container: container.current,
renderer: "svg",
loop: true,
autoplay: true,
animationData: require("../../public/jsonanims/growBusiness.json"),
});
lottie.setSpeed(0.4);
}, [])