You will need to have a special service tool to remove the fuel lines from the filter. Here's the listed procedure for changing the filter:
The filter is located by the left rear wheel.
Removing fuel filter
Carefully release the quick-release connectors by pressing the fuel lines towards the filter (A) while moving the black circlip backwards (B), together with the fuel line. Use tool(NNN) NNN-NNNN
Press the fuel line locking part in and pull the fuel line off.
Remove the clamp and remove the fuel filter.
Installing fuel filter:
Install the new filter and carefully reconnect fuel hoses.
Check that the quick-release connectors are secure by pulling them.
Secure filter on the bracket with the clamp.
Start the engine
and check for leakage.
Usually when the engine is stalling, you may have more of an issue than a bad fuel filter. This isn't a common reason for engine stalling. If you have a check engine light on, I would recommend having the codes read. If not, you may have to have the fuel system pressures checked, and have the rest of the engine's systems checked to find the stalling problem.
Good luck, and let me know if you have any more questions!