I now modified my timelapse example (which uses the front camera) and tested it on Samsung Galaxy A54 running Android 13... (I send it to you in a PM)...
reducing the width and height as well as the quality worked fine for me
however taking a picture unfortunately takes its time... still around 2 seconds per picture... the darker the picture the worse...
for your requirements you probably have to use an extension, which uses the new camera2 api...
try the Pro Camera Extension by Kumaraswamy_B.G
Taifun