the lags parameter requires a list of ints, so if passing the same ints from pacf to mlforecast in an explicit non-variable form works then there is probably something weird with the variable itself. Maybe it's a list of lists or something?
As for the transformation tuning you absolutely want to tune for that, you just need to split your data before you hand it off to transform to prevent leakage. Not 100% on if lightgbmcv will protect you from that and it's a good question for @José Morales .
the fourier order 'k' should probably also be tuned for. Seems like you have weekly data so 10 is probably ok to start out with and I wouldn't go lower than 5 or higher than 15. Also I personally have better luck not over-differencing so maybe stick to just Differences[1] but of course I would tune for it if possible!