What you have created at present is a storage reservoir. Without a means of escape and it has filled with water it will 'overflow' as you have experienced. A French drain is only a means of collecting and routing water. You still have to develop a route for the collected water to run away...