You need atleast 6 hours for the plants to properly photosynthesis.
You can instead try to use complete blackout for 2-4 days to kill off worst of the algae (requires you to cover out the whole tank to not even let ambient light in) the do water change to remove any dead debris and floating algae cells.
This however does not remove the underlying problem which is some kind of imbalance.
Other things to do to help reduce algae:
1. Do regular maintenance, preferably once a week. Water change 20-50% and vacuum on top of plants and substrate and decor. (optional) Scrape excess algae before wc from glasses, old toothbrush on decoration and plastic card for glass
2. (optional) Add more plants, nutrients if they show deficiency symptoms. Floating plants are my favourite.
3. (optional) Add a light break in the middle 2-4 hours. Note that total lighting time should stay between 2h and 10h and the light+break should stay within 12h as fish need rest.
4. Feed fish tiny bits until they stop fetching them within few seconds instead of putting all of it at once. (make sure bottom feeders get fed tho)