I would reduce the lighting such that the background is not saturated. Maybe try narrowing the aperture to get more depth of focus. When the background is saturated, it is difficult for the camera sensor to define a sharp edge because the saturated brightness from neighboring pixels bleeds.
The image will be much darker, but then you can do a gamma correction to brighten it up. The bright pixels aren't affected much by gamma correction while the darker pixels will experience much higher gain. Basically a gamma correction will make the not fully white background become fully saturated white and then the product itself will brighten to your desired appearance.
Otherwise you can use a black background because the edges should appear more defined. Then you can simply photoshop out the black background and replace with a white one.
Lastly you can get something like this: https://www.amazon.com/Calibrite-ColorChecker-Passport-Photo-CCPP2/dp/B0973HSH3V/ref=mp_s_a_1_4?crid=2C1K7PSIAKCPC&keywords=calibrite+colorchecker&qid=1688932669&sprefix=calibrite+colorchecker%2Caps%2C161&sr=8-4&ufe=app_do%3Aamzn1.fos.f5122f16-c3e8-4386-bf32-63e904010ad0
There is a software tool where you take the white balanced image of this colorchecker and it can create a dcp color profile for your camera / illuminant combo. It will automatically adjust the levels for proper brightness and color fidelity. This dcp profile can be imported into lightroom and applied as a color profile for your raw images.