M. Night Shyamalan, known for dark films like “The Sixth Sense,” has teamed up with Nicholas Sparks for a new project.