Why does my film camera not use entire roll of film?

I have a point and shoot olympus mju zoom 105. It had been working perfectly fine with the first few rolls of film but recently whenever I have put a new lot of film in it automatically rewinds the film after taking only 6 photos.
Any ideas as to why this might be happening?